package com.ranjiaqi.file;

import java.io.File;

/**
 * @ClassName TestDirectoryOrFile
 * @Description TODO
 * @Author hp
 * @Date 2021/6/30 19:56
 * @Version 1.0
 **/
public class TestDirectoryOrFile {
    public static void main(String[] args) {
        File file = new File("F:/java/day_01");
        boolean directory = file.isDirectory();
        boolean file1 = file.isFile();
        System.out.println("directory = " + directory);
        System.out.println("file1 = " + file1);
    }
}
